/*
 * @Author: HeAo
 * @Date: 2022-09-13 10:06:21
 * @LastEditTime: 2022-09-13 11:14:50
 * @LastEditors: HeAo
 * @Description:  
 * @FilePath: \第二阶段\ES6\day01\src\3-modules.js
 * 别乱动！
 */
// 作为到处模块
// es6模块化导出
let firstName = 'zhao'
let lastName = 'larry'
// 1、导出方式 列表导出
export {
  firstName,
  lastName
}
// 2、重命名导出
export {
  firstName as first, lastName as last
}
// 3、属性导出
export let a = 1
export function get() {
  console.log('属性导出-modules3');
}
// 4、默认导出
export default {
  firstName,
  lastName,
  b: '默认导出'
}